<template>
	<view>
		<web-view v-if="isShow" src="/static//webView//index.html"></web-view>
	</view>
</template>

<script>
	export default{
		//公众号授权页面 https://open.weixin.qq.com/connect/oauth2/authorize?appid=公众号的appid&redirect_uri=接收code的h5页面&response_type=code&scope=snsapi_base&state=123#wechat_redirect
		data(){
			return{
				isShow:true
			}
		},
		onLoad(options) {
			console.log(options)
			if(options.code){
				this.isShow = false
			}else{
				this.isShow = true
			}
		}
	}
</script>
